home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00008_Script_changeCursor
< prev
next >
Wrap
Text File
|
1999-04-25
|
3KB
|
96 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
property CRimage,CRmask,CDimage,CDmask,handImage,handMask
--CRimage and CRmask are castNumbers of images used for custom rollover cursors
--CDimage and CDmask are castNumbers of images used for custom mouseDown cursors
on new me
set handImage = the memberNum of member "handR-image"
set handMask = the memberNum of member "handR-mask"
if the spriteNum of me = 6 then
-- if rolled over the plane image sprite
-- in QTVR exterior always change cursor to hand
set CRImage = the memberNum of member "handR-image"
set CRmask = the memberNum of member "handR-mask"
set CDimage = the memberNum of member "handD-image"
set CDmask = the memberNum of member "handD-mask"
else
set CRImage = the memberNum of member "cursorR-image"
set CRmask = the memberNum of member "cursorR-mask"
set CDimage = the memberNum of member "cursorD-image"
set CDmask = the memberNum of member "cursorD-mask"
end if
return me
end
on getbehaviorDescription
return"changes the cursor on rollover and mousedown otherwise set it to the default"
end
on mousedown me
cursor [CDimage,CDmask]
pass
end
on mousewithin me
if the mousedown then
else
cursor[CRimage,CRmask]
end if
updateStage
pass
end
on mouseleave me
-- The enclosing if statement checks for a special case when
-- we are contolling cursors while in the plane Exterior.
-- Then we want the default cursor to be the "hand" instead of the "arrow"
global gSelct
if (IAmInExterior (me)) and rollover(6) then
cursor [handImage,handMask]
else
cursor -1
end if
updateStage
pass
end
on mouseup
cursor[CRimage,CRmask]
pass
end
on IAmInExterior me
global gselct,NumOfQTVRMenuItems, range
set qtvrPlaneSprNum = getSpriteNumFromMemberName("qtvranchor")+1
set range = NumOfQTVRMenuItems - 1
set exteriorSpriteNum = qtvrPlaneSprNum + range
if gselct = exteriorSpriteNum then
set value = TRUE
else
set value = FALSE
end if
return value
end